package cn.edu.scau.cmi.ema.configuration;

import cn.edu.scau.cmi.ema.domain.NewUser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.edu.scau.cmi.ema.repository")

public class MainConfiguration {
    @Bean
    public NewUser registerController(){
        NewUser newUser = new NewUser();
        newUser.setName("梁早清");

        return newUser;
    }
}
